home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000433_news@newsmaster….columbia.edu _Mon Sep 29 10:35:25 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA20262
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 29 Sep 1997 10:35:25 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA19439
  7.     for kermit.misc@watsun; Mon, 29 Sep 1997 10:35:24 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: How, exactly, should Kermit encode data?
  12. Date: 29 Sep 1997 14:35:19 GMT
  13. Organization: Columbia University
  14. Lines: 36
  15. Message-ID: <60oeb7$fc3$1@apakabar.cc.columbia.edu>
  16. References: <60ko7e$pts@nr1.calgary.istar.net>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7757
  19.  
  20. In article <60ko7e$pts@nr1.calgary.istar.net>,
  21. Russell Magee  <bigruss@cheetah.spots.ab.ca> wrote:
  22. :   Hi all, my apologies for a (probably) stupid question.
  23. :   At work we needed a quick and dirty solution for downloading boot images
  24. : into an embedded controller's Flash chips. Not wanting to re-invent the
  25. : wheel, I decided the best thing to do would be to use an existing protocol
  26. : for sending the boot image; so I found the Kermit protocol spec on an ftp
  27. : site and began coding a Kermit receive bootstrap.
  28. :   I've got the transfer working properly now (I think), but it took a few
  29. : modifications to what I understood the Kermit encoding algorithm to be.
  30. : Here's the encoding scheme I have so far (for 8-bit transfers):
  31. :   -All ASCII codes under 32 are prefixed with '#' (the control-quote escape),
  32. :     and have bit 6 inverted (modulo 64);
  33. :   -The '#' character is prefixed by itself ('#' => '##');
  34. :   -ASCII DEL ($7f) is prefixed by '#' and has bit 6 inverted (modulo 64);
  35. :   The same rules seem to be applied to all values over 127, as if they were
  36. : 7-bit characters (e.g., '#'+128 (code $a3) is prefixed with '#' , resulting
  37. : in the code $23a3; $FF, which is DEL+128, is prefixed with $23 resulting in
  38. : $23BF).
  39. :   The Kermit docs I have are quite detailed as to how to encode 8-bit data
  40. : over a 7-bit line, but they didn't mention these peculiarities about 8-bit
  41. : encoding.  I determined these rules by examining the packets sent by the PD
  42. : term program 'Telix' on the IBM PC.  If anyone could clarify/correct these
  43. : rules I would appreciate it!
  44. I don't know what Kermit protocol spec you found on what ftp site, but no
  45. reverse engineering was necessary; the Kermit protocol is specified in the
  46. book "Kermit, A File Transfer Protocol":
  47.  
  48.   http://www.columbia.edu/kermit/manuals.html
  49.  
  50. - Frank